﻿
namespace QuickTuner.Util
{
    // note: this file also exists in QuickTunerLib. modify with care.
    public static class FrameworkExtensions
    {
        // escape the string for storing in registries
        public static string RegistryEscape(this string s)
        {
            s = s.Replace("\\", @"\\");
            s = s.Replace("\n", @"\n");
            s = s.Replace("\r", @"\r");
            s = s.Replace("\"", @"\""");

            return s;
        }
    }
}